package com.sofn.spboot.controller;

import com.sofn.spboot.model.User;
import com.sofn.spboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * author tianjie
 *
 * @date 2016/11/8
 */
@RestController
public class TestController {

    @Autowired
    private UserService userService;

    @RequestMapping("/test1")
    public String get(){
        return "1";
    }
    @RequestMapping("/test2")
    public User test2(){
         userService.getUser();
        return null;
    }
}
